package com.example.tonyzxb.autoemulator.juice;

import android.support.annotation.CheckResult;
import android.support.annotation.IntDef;
import android.support.annotation.NonNull;
import android.support.annotation.UiThread;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

public class ActionBar {

    @IntDef({DARK,LITHT})
    @Retention(RetentionPolicy.SOURCE)
    public @interface Theme{}
    
    
    public static final int DARK=1;
    public static final int LITHT=2;
    
    private int theme;
    
    @NonNull private String title;
    
    @UiThread
    public void setTheme(@Theme int theme){
        this.theme=theme;
    }
    
    public void test(){
        setTheme(ActionBar.DARK);
        demo(null);
        title=null;
        boolean open = open();
    }
    public void demo(@NonNull String itemId){
        
    }
    
    @CheckResult
    public boolean open(){
        return true; 
    }
    
}

